Skip to content
This repository has been archived by the owner on Nov 29, 2021. It is now read-only.

fix: check nft existence in db #347

Open
wants to merge 1 commit into
base: release-5.6.x
Choose a base branch
from
Open

Conversation

peterjah
Copy link
Contributor

No description provided.

return false;
})
) {
if (await nftManager.exists(tokenId)) {
Copy link
Contributor

@dlecan dlecan Sep 30, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What are the performance impacts?
Especially when starting a node from scratch?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

benched on my local machine:
old version (parse all wallets in ram): 21.223ms
new version (db query) : 4.088ms

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants